<script language="javascript">
function del(link){
message = "{ %lang q1}";
if( confirm(message)){
window.location=link;
}
}
</script>


<form action="" method="post" enctype="multipart/form-data">
    <table width="100%" cellpadding="2" cellspacing="2">
        <tr><td>{ %lang m3} ({#cm})</td></tr>
        <tr><td><input type="text" name="countmessages" size="3"> <input type="submit" name="submit" value="{ %lang m4}"></td><td align="right"><a href="##" onclick="javascript:del('{%action(deleteallmsg)}');">{ %lang m5}<img src="img/delete.gif" border="0"></a></td></tr>
    </table>
</form><br>
<div class="title">{ %lang m6}</div>
{ %loop #var }
<table width="100%" cellpadding="4" cellspacing="4">
    <tr><td align="left"> <img src="img/update2.png" border="0" align="middle" alt="" /><b>{ #var[i][author]}</b>  [{ #var[i][email]}]  </td><td align="right">{ #var[i][date]} <a href="{ %action(editmessage,editvar={ #var[i][id]})}" ><img src="img/edit.gif" border="0"></a> <a href="{ %action(adminmessages,delvar={ #var[i][id]}&page={#page})}" ><img src="img/delete.gif" border="0"></a></td></tr>
    <tr><td colspan="2">{ #var[i][message]}</td></tr>
    <tr><td colspan="2"></td></tr>
</table>
<hr />
{/loop}

{%if {#previous} eq 1} <a href="{#actionprevious}" >&larr;&nbsp; { %lang m7}</a> {/if}
{%if {#next} eq 1} <a href="{#actionnext}" >&rarr;&nbsp; { %lang m8}</a> {/if}

<!--a href="{ %action(editmessage,editvar={ #var[i][id]})}"><img src="img/edit.gif" border="0"></a-->


